package com.settlement.system.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.settlement.system.model.entity.common.BaseModel;

import java.util.ArrayList;
import java.util.List;

/**
 * @author author
 */
public class ImportExcelListener<ModelType extends BaseModel> extends AnalysisEventListener<ModelType> {

    List<Object> list = new ArrayList<>();

    @Override
    public void invoke(ModelType modelType, AnalysisContext analysisContext) {
        list.add(modelType);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
